package org.m.example;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Data
public class DemoB {
    @Autowired
    //把ioc中的demoA属性赋给A属性
    private DemoA a;

}
